home *** CD-ROM | disk | FTP | other *** search
-
- Sub v3.3a (c) Jean Lalonde, Montreal, CANADA, August 1987
- =========================================================
-
-
- Table of content
- ----------------
-
- 1 - Distribution
-
- 2 - Sub's features summary
-
- 3 - Using Sub v3.3
-
- 3a- Sub's commands
-
- 3b- Sub's display
-
- 3b- Sub's syntax
-
-
-
- 1 - Distribution
- ================
-
- This program can be distributed if it is done without profit.
- Individuals can use Sub freely. Non-individuals users, please, send me $20
- per copy used. Sources are available for $25. Buying the sources gives you
- the right to modify the program as you wish. Please, send comments, bug
- reports, registrations or sources order (with check or money order to Jean
- Lalonde) at the following address:
-
- Jean Lalonde
- P.O. BOX 721
- Station "R"
- Montreal
- CANADA
- H2S-3M4
-
- You can join me online on Compuserve (ID: 76606,671) or on BIX Info
- Exchange (Bix name: jlalonde). Sub is written in MODULA-2/86, Rel. 2.0
- (A), PC/MS-DOS 8088/8086, LOGITECH, (C) Copyright 1983, 1984, 1985, 1986.
- Sub uses standard PC/MS-DOS functions, it support redirected input/output.
- Clones having problem with Ctr-C or Ctr-Break should use /q option to enable
- <escape> and disable Break (note that the option /q will disable the type
- ahead buffer).
-
-
-
- 2 - Sub's v3.3 features summary
- ===============================
-
- Main improvement in version 3.3:
- - An exclusion list is allowed in the files spec. The exclusion
- list follows a '/' in the filenames list.
- - The DOS function "Jump" to exit Sub to the directory currently
- scanned by Sub.
-
- Since version 3.2:
- - Search for given files on hardisk
- - Accept multiple drives and multiple files search request
- - DOS functions to apply to found files: from menu or with copy,
- delete, move, rename, type or change attributes switches
- - scan top directory only or down from a given directory
- (including children)
- - tell you where it is searching
- - search abortable with Ctr-C, Ctr-Break or <escape>
- - search abortable *anytime*
- - default values (current drive, directory and *.*)
- - search according to files date or size
- - search according to files attributes
- - give you total bytes of files found
- - give the files found count
- - can show you only the final result
- - optional display of space free on disk
- - choice of brief or complete display
- - page break and customizable page length
- - MS/PC-DOS compatible (3.0 and later)
- - allow Input/Output redirection (to printer, files or modem)
- - help within the program
-
-
-
- 3 - Using Sub v3.3
- ==================
-
- 3a - Sub's commands
- -------------------
-
- You can specify almost every Sub's commands at the DOS line. If Sub
- is called without parameter, it will show you all files of the current
- directory and of its children with the default display options. To narrow
- the action to a given section of your hard-disk, you must specify the
- "parent directory". Then, Sub will work on this directory and on its
- children directories. To apply the action of Sub to the whole hard-disk,
- specify "Sub \" (backslash "\" meaning root directory). You can also
- restrict Sub to the given top directory (see option /t).
-
- If you do not specify a drive, Sub will work on the current drive. If
- you want to work on another drive, specify wich drive in your DOS command
- "Sub a:dir\files". You can work on multiple drives. To scan every sub-
- directories on your hard-disk c: and d:, enter "Sub cd:\".
-
- If you want Sub to find only files matching a given pattern (such as
- "*.BAT"), you must specify it right after the parent directory, separating
- the directory and the filename by a backslash ("\"). To look for batch
- files down from the \DOS directory, specify "Sub \DOS\*.BAT". You can
- enter multiple filenames. For example, if you want a list of your
- executable files, enter the command "Sub *.BAT+*.COM+*.EXE". You can also
- specify an exclusion list after a '/'. For example, for every files except
- executable files, enter "Sub *.*/*.BAT+*.COM+*.EXE".
-
- If you do not specify files after the last "\" of the sub-directory,
- Sub will scan all files ("*.*") down from this directory. For example,
- "Sub \thisdir\" is understood as "Sub \thisdir\*.*".
-
- You can apply other filters to the Sub's search, selecting according
- to attributes (see option /a), dates or size (options /: /+ or /-).
-
- Sub can also call DOS functions (option /d) and apply them to the files
- found. You can copy those files (/d:c), delete them (/d:d), move/redirect
- them (/d:m), remane them (/d:r), type them (/d:t) or change their
- attributes (/d:a). For each function, Sub will ask you for additionnal
- information if needed. You can also "jump" to a new directory when exiting
- Sub (with the DOS function /d:j).
-
- Sub offers you an expert swith for DOS commands. With /x, your
- command will be executed without *any* confirmation prompt. Use this
- option at your own risk and be careful!
-
- You can also use DOS commands from a menu. Specify only /d without
- DOS function and Sub will prompt you with a functions menu for each file
- found. In this case, Sub will not ask for confirmation before applying
- a DOS function.
-
- Permanent parameters can be specified in your environment. Your
- AUTOEXEC.BAT should specify: 'SET SUBSPEC=/x/x...' (eg.: SET SUBSPEC=/c/f).
-
-
- 3b - Sub's display
- ------------------
-
- Correct screen output requires ANSI.SYS to be specified in your
- CONFIG.SYS file (DEVICE=ANSI.SYS). If you use Sub via modem, your
- communication program must emulate VT-100 or ANSI protocols.
-
- Sub has two display modes. In "brief mode" (option /b) it will only
- show you the path and file name. In "normal mode", it will show you:
-
- files count time size drive filename
- date attributes path
-
- 1: 87aug08 17:57 14245 a C:\M2LIB\DEV\SUB\EXP\SUB.DOC
-
- Some display features are customizable. You can ask Sub to display
- only its report (option /r), show the free space on the given drive (option
- /f). You can change the number of "lines per page" for your monitor
- (option /p) and specify if you do not want page break (option /c). You can
- force line feed (option /l) if you redirect the output to the printer or a
- file. Sub will show you the current directory it is scanning. If you do
- not like, you can suppress this information (option /s).
-
- When page break is ON, Sub will display "<space>, N(on stop or <Esc> "
- at every 24 lines (or else if specified with option /p). Press <space> to
- see the next page, 'N' to display the other files non-stop or <escape> to
- abort.
-
- If you use Sub remotely (for example, through a modem), it can be
- impossible to send the <escape> key. In this case, everywhere <escape>
- should be used, send Ctrl-X or Ctrl-C.
-
-
- 3c - Sub's syntax
- -----------------
-
- C>Sub drives:\subdirectory\filenames /options
-
- drives: - Drives to scan (default= current drive).
- subDirectory - Top level to scan from (default= current directory).
- Maximal length for 'subDirectory' is 64 chars.
- fileName - File to search for or files to list, wild cards * and ? are
- allowed (default= all files *.*), multiple file names are
- allowed seperated by '+' ('*.COM+*.EXE+...'), exclusion list
- after '/'. Maximal length for 'fileName' is 128 chars.
-
-
-
- Options:
-
- /: /+ /- list files with date/size selection, default is no selection.
- syntax= Date: 'YYmmmDD', 'mmmDD', 'today', eg: 87apr22, 87jan, today.
- Size: 'xxxK', eg: 100k.
- /:DateSize (files of <this> date or <this> size),
- /:DateSize+n (files of <this> date/size plus n days/kb),
- /:DateSize-n (files of <this> date/size minus n days/kb),
- /+DateSize (files <from>...) or
- /-DateSize (<up to>...).
-
-
- You can enter a range of dates or sizes by adding +n or -n at
- the end of the date or size, where n is the number of days or
- kilo-bytes before or after the given date or size. More than
- one date or size criteria may be specified to list files
- from...to given dates or given size.
-
- Date format is year (two numbers), month (three letters) and day
- (two numbers) with no space (e.g.: "87jan14"). If you only type
- the year, default month and day are January first (e.g.: "85"
- means "85jan1"). If you only specify month, current year and
- first of the month are considered (e.g.: this year, "jan" means
- "87jan01"). If you type mmmDD, the year is the current one
- (e.g.: "jan23" means "87jan23"). The date "today" gives you the
- current system date. If no date selection is specified, files
- of any date are listed.
-
- Size format is a number from 0 to 1000000000 (1,000 megs!) and
- the letter "k" (e.g.: 1k or 1234k). Sub will return you the
- files with the given size and 1,023 bytes *less* (e.g.: the size
- 1k will gives you files from 1 byte to 1,024 bytes).
-
-
- /A to specify file's Attributes, syntax is /a:attributes.
-
- Attributes are:
- R= Read Only H= Hidden S= System
- V= Volume D= Directory A= Archive
- N= No Attribute ALL= any atributes
-
- Default is /a:ran (Read Only, Archive or No attribute).
- To find files with more than one attribute, all attributes must
- be specified (e.g. system files have attributes /a:rhs).
-
- /B for Brief display (only d:\dir\filename), syntax= /b, default is OFF
- (number, date, time, size, attribute, drive, directory and file name).
-
- /C for Continuous display, disable page break, default is OFF (see /P).
-
- /D to call DOS commands Copy, Delete, Move, Rename, Type, Change
- attribute or Jump, syntax=
-
- /d to call a menu for each file found. After the commands copy
- and type, the menu will reappear for the same file. This way,
- you could type a file before deleting it. Other commands will
- cause Sub to search for the next file.
-
- /d:c to copy file(s): You have to specify in your command the
- directory where to copy files (e.g.:
- "Sub \*.arc /d:c \allarc"). Sub will ask
- you to confirm your request and if you want
- to confirm for each file.
-
- /d:d to delete file(s): Sub will ask you to confirm your request
- and if you want to confirm each deletion.
-
- /d:m to move file(s): You have to specify in your command the
- directory where to move files (e.g.:
- "Sub \*.arc /d:m \allarc"). Sub will ask
- you to confirm your request and if you want
- to confirm for each file.
-
- /d:r to rename file(s): You have to specify in your command the
- new name (e.g.: "Sub toto.* /d:r coco.*").
- Sub will ask you if you want to confirm
- for each file.
-
- /d:t to type file(s): Sub will ask you to confirm your request and if
- you want to confirm for each file.
-
- /d:a to change an attribute to file(s): You have to specify in
- your command the attribute to change with
- syntax: +X or -X to set or remove the
- attribute X (e.g.: "Sub *.* /d:a -A").
- See attributes list in option /A. Sub
- will ask you if you want to confirm for
- each file.
-
- /d:j to jump to a new directory when exiting Sub: Sub will ask you to
- confirm your request and if you want to
- confirm for which directory or jump to the
- first found.
-
- NOTE: In the current version, if the directory
- to "jump" is on a drive other than the
- original drive, Sub will change the directory
- on this drive *but* the exiting drive will
- remain the original one. All you will have
- to do after Sub is changing the drive yourself
- and you will be in the new directory. I will
- have to path my run-time system to fix it...
-
-
- /F to report Free space, default is OFF.
-
- /H display Help file. SUB.HLP must be in the current directory or in
- one of your path directories (PATH=\DIR).
-
- /L to force Linefeed while scanning, default is OFF.
-
- /P specify Page length (Sub stop the display at every x lines), syntax=
- /p:x (with x from 1 to 65535), default is 24 lines (see option /C).
-
- /Q to Quit (abort) with <escape> instead of Ctr-C, default is OFF.
-
- /R to display only the Report (number of files found and total size),
- default is OFF.
-
- /S for Silent scan (does not display the names of currently scanned
- directory), default is OFF.
-
- /T to scan only the Top level (parent) directory, default is OFF (scan
- from parent directory to lowest levels).
-
- /X to avoid *any* confirmation prompt relative to DOS commands (/d:).
- *** WARNING: the use of this feature is at your own risk. ***
-
-
-
- -eof-